package com.leyu.mall.site.search.controller;

public class IdText implements Cloneable {
	String parent;
	Long id;
	Long count;
	String text;
	String pname;
	boolean selected;
	boolean hidden;
	String href;

	public String getPname() {
		return pname;
	}

	public void setPname(String pname) {
		this.pname = pname;
	}

	public String getHref() {
		return href;
	}

	public void setHref(String href) {
		this.href = href;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}

	public String getParent() {
		return parent;
	}

	public void setParent(String parent) {
		this.parent = parent;
	}

	public boolean isSelected() {
		return selected;
	}

	public void setSelected(boolean selected) {
		this.selected = selected;
	}

	public Long getCount() {
		return count;
	}

	public void setCount(Long count) {
		this.count = count;
	}

	public boolean isHidden() {
		return hidden;
	}

	public void setHidden(boolean hidden) {
		this.hidden = hidden;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((id == null) ? 0 : id.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		IdText other = (IdText) obj;
		if (id == null) {
			if (other.id != null)
				return false;
		} else if (!id.equals(other.id))
			return false;
		return true;
	}

	@Override
	public String toString() {
		return "IdText [parent=" + parent + ", id=" + id + ", count=" + count
				+ ", text=" + text + ", pname=" + pname + ", selected="
				+ selected + ", hidden=" + hidden + ", href=" + href + "]";
	}

	@Override
	public IdText clone() {
		IdText idText = new IdText();
		idText.parent = parent;
		idText.count = count;
		idText.hidden = hidden;
		idText.href = href;
		idText.id = id;
		idText.pname = pname;
		idText.selected = selected;
		idText.text = text;
		return idText;
	}
}
